import axios from '../util/axios'

export function getVideoList(params={}){
  return axios({
    url:'/admin/video',
    method:'GET',
    params
  })
}

export function addVideo(params={}){
  return axios({
    url:'/admin/video',
    method:'POST',
    params
  })
}
export function editVideo(params={}){
  return axios({
    url:'/admin/video',
    method:'PUT',
    params
  })
}

export function deleteVideo(params={}){
  return axios({
    url:'/admin/video',
    method:'DELETE',
    params
  })
}

export function uploadBigVideo(params={}){
  return axios({
    url:'/admin/uploadVideo',
    method:'POST',
    query:params
  })
}